package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;

/**
 * 角色实体类
 * @author 韩忠金
 *
 */

public class Role  extends PO implements Serializable,BeanModelTag{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int roleID;
	private String roleName;
	private String remark;
	//private Set<Authority> authoritys = new HashSet<Authority>();
	public int getRoleID() {
		return roleID;
	}
	public void setRoleID(int roleID) {
		this.roleID = roleID;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
//	public Set<Authority> getAuthoritys() {
//		return authoritys;
//	}
//	public void setAuthoritys(Set<Authority> authoritys) {
//		this.authoritys = authoritys;
//	}

	@Override
	public XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.role());
		xmlInfo.setSubclass("Student");
		return xmlInfo;
	}
	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return null;
	}
	
}
